<template>
	<view class="bg-white" style="height: 100vh;">
		<cu-custom :bgColor="NavBarColor" :isBack="true" backFlag="navigate">
			<block slot="backText">返回</block>
			<block slot="content">阴保NB测试详情</block>	
		</cu-custom>
		<view class="cu-list menu margin-top">

			<view class="cu-form-group">
				<view class="title">设备编号</view>
				<input readonly  name="input" v-model="myFormDataTest.deviceId"></input>
			</view>

			<view class="cu-form-group" style="width: 100%;">
				<view class="content" style="width: 35%">
					<text class="text-black title ">通电电位(mV):</text>
				</view>
				<view class="propertyBox" style="width: 65%; flex-flow: row;justify-content: flex-start;display: flex;">
					<text style="width: 40%;color: #00aa00;">{{arryObject.pson}}</text>
					<input style="width: 60%;" name="input" v-model="myFormDataTest.pson"></input>
				</view>
			</view>
			
			<view class="cu-form-group" style="width: 100%;">
				<view class="content" style="width: 35%">
					<text class="text-black title ">断电电位(V):</text>
				</view>
				<view class="propertyBox" style="width: 65%; flex-flow: row;justify-content: flex-start;display: flex;">
					<text style="width: 40%;color: #00aa00;">{{arryObject.psoff}}</text>
					<input style="width: 60%;" name="input" v-model="myFormDataTest.psoff"></input>
				</view>
			</view>
			
			<view class="cu-form-group" style="width: 100%;">
				<view class="content" style="width: 35%">
					<text class="text-black title ">交流电压(V):</text>
				</view>
				<view class="propertyBox" style="width: 65%; flex-flow: row;justify-content: flex-start;display: flex;">
					<text style="width: 40%;color: #00aa00;">{{arryObject.av}}</text>
					<input style="width: 60%;" name="input" v-model="myFormDataTest.av"></input>
				</view>
			</view>
			
			<view class="cu-form-group" style="width: 100%;">
				<view class="content" style="width: 35%">
					<text class="text-black title ">自然电位(V):</text>
				</view>
				<view class="propertyBox" style="width: 65%; flex-flow: row;justify-content: flex-start;display: flex;">
					<text style="width: 40%;color: #00aa00;">{{arryObject.sp}}</text>
					<input style="width: 60%;" name="input" v-model="myFormDataTest.sp"></input>
				</view>
			</view>
			
			<view class="cu-form-group" style="width: 100%;">
				<view class="content" style="width: 35%">
					<text class="text-black title ">试片直流电流(mA):</text>
				</view>
				<view class="propertyBox" style="width: 65%; flex-flow: row;justify-content: flex-start;display: flex;">
					<text style="width: 40%;color: #00aa00;">{{arryObject.dc}}</text>
					<input style="width: 60%;" name="input" v-model="myFormDataTest.dc"></input>
				</view>
			</view>
			
			<view class="cu-form-group" style="width: 100%;">
				<view class="content" style="width: 35%">
					<text class="text-black title ">试片交流电流(mA):</text>
				</view>
				<view class="propertyBox" style="width: 65%; flex-flow: row;justify-content: flex-start;display: flex;">
					<text style="width: 40%;color: #00aa00;">{{arryObject.ac}}</text>
					<input style="width: 60%;" name="input" v-model="myFormDataTest.ac"></input>
				</view>
			</view>
			
			<view class="cu-form-group" style="width: 100%;">
				<view class="content" style="width: 35%">
					<text class="text-black title ">牺牲阳极电位(V):</text>
				</view>
				<view class="propertyBox" style="width: 65%; flex-flow: row;justify-content: flex-start;display: flex;">
					<text style="width: 40%;color: #00aa00;">{{arryObject.sap}}</text>
					<input style="width: 60%;" name="input" v-model="myFormDataTest.sap"></input>
				</view>
			</view>
			
			<view class="cu-form-group" style="width: 100%;">
				<view class="content" style="width: 35%">
					<text class="text-black title ">牺牲阳极保护电流(mA):</text>
				</view>
				<view class="propertyBox" style="width: 65%; flex-flow: row;justify-content: flex-start;display: flex;">
					<text style="width: 40%;color: #00aa00;">{{arryObject.sac}}</text>
					<input style="width: 60%;" name="input" v-model="myFormDataTest.sac"></input>
				</view>
			</view>
			
			<view class="cu-form-group" style="width: 100%;">
				<view class="content" style="width: 35%">
					<text class="text-black title ">信号强度(dBm):</text>
				</view>
				<view class="propertyBox" style="width: 65%; flex-flow: row;justify-content: flex-start;display: flex;">
					<text style="width: 40%;color: #00aa00;">{{arryObject.si}}</text>
					<input style="width: 60%;" name="input" v-model="myFormDataTest.si"></input>
				</view>
			</view>
			
			<view class="cu-form-group" style="width: 100%;">
				<view class="content" style="width: 35%">
					<text class="text-black title ">电池电压(V):</text>
				</view>
				<view class="propertyBox" style="width: 65%; flex-flow: row;justify-content: flex-start;display: flex;">
					<text style="width: 40%;color: #00aa00;">{{arryObject.bv}}</text>
					<input style="width: 60%;" name="input" v-model="myFormDataTest.bv"></input>
				</view>
			</view>
			
			<view class="cu-form-group" style="width: 100%;">
				<view class="content" style="width: 35%">
					<text class="text-black title ">电池电量(%):</text>
				</view>
				<view class="propertyBox" style="width: 65%; flex-flow: row;justify-content: flex-start;display: flex;">
					<text style="width: 40%;color: #00aa00;">{{arryObject.ba}}</text>
					<input style="width: 60%;" name="input" v-model="myFormDataTest.ba"></input>
				</view>
			</view>
			
			<view class="cu-form-group" style="width: 100%;">
				<view class="content" style="width: 35%">
					<text class="text-black title ">厂商信息:</text>
				</view>
				<view class="propertyBox" style="width: 65%; flex-flow: row;justify-content: flex-start;display: flex;">
					<text style="width: 40%;color: #00aa00;">{{arryObject.mf}}</text>
					<input style="width: 60%;" name="input" v-model="myFormDataTest.mf"></input>
				</view>
			</view>
			<view class="cu-form-group" style="width: 100%;">
				<view class="content" style="width: 35%">
					<text class="text-black title ">时间戳:</text>
				</view>
				<view class="propertyBox" style="width: 65%; flex-flow: row;justify-content: flex-start;display: flex;">
					<text style="width: 100%;color: #00aa00;">{{arryObject.time}}</text>
				</view>
			</view>
			<view class="cu-form-group" style="width: 100%;">
				<view class="content" style="width: 35%">
					<text class="text-black title ">设备上报时间:</text>
				</view>
				<view class="propertyBox" style="width: 65%; flex-flow: row;justify-content: flex-start;display: flex;">
					<text style="width: 100%;color: #00aa00;">{{arryObject.createTime}}</text>
				</view>
			</view>
			<view class="cu-form-group" style="width: 100%;">
				<view class="content" style="width: 35%">
					<text class="text-black title ">测试上传时间:</text>
				</view>
				<view class="propertyBox" style="width: 65%; flex-flow: row;justify-content: flex-start;display: flex;">
					<text style="width: 100%;">{{myFormDataTest.testTime}}</text>
				</view>
			</view>

			<view class="cu-form-group">
				<view class="title">备注：</view>
				<textarea  placeholder="" name="input"  v-model="myFormDataTest.remark"></textarea>
			</view>
		</view>
	</view>
</template>

<script>


export default {
	data(){
		return{
			NavBarColor:this.NavBarColor,
			myFormDataTest:{
				
			},
			arryObject:{
				
			},
			goodNumber:null,
			flg:true,
			src:"",
			pic:"",
			ybnbId:"",
			
		}
	},

	onLoad: function (option) {
	    const annItem = JSON.parse(decodeURIComponent(option.item));
		this.myFormDataTest = annItem 
		
		this.getYbnbId(this.myFormDataTest.ybnbId);
	},
	created(){
		console.log("created")
	},
	methods:{
	    getYbnbId(ybnbId){
			this.$http.get("/two/getYbnbId",{params:{ybnbId:ybnbId}}).then(res=>{
				if (res.data.success){
					this.arryObject = res.data.result
				}			   			
			})
		},
	   showVideo() {
				uni.navigateTo({
					url: '/pages/common/commonVideo?item='+this.src
				}) 
	   }, showPic() {
		   console.log(this.pic)
				uni.navigateTo({
					url: '/pages/common/commonPic?item='+this.pic
				}) 
	   }
	}
}
</script>

<style>
	
</style>
